 |
API Documentation
|
|
|
18 class DLL_WINUI_EXPORT
Item
57 void setLabel (
const std::string_view& label) ;
142 virtual void changeItemLabel (
const std::string_view& oldText,
const std::string_view& newText) ;
void setAttachedData(void *data)
virtual void importClassFromTree(nkExport::Node *rootNode) override
virtual void * deleteItem(const std::string_view &name)
unsigned int getItemCount() const
virtual Item * getCurrentSelection() const
void setSelectionSpecializedCallback(listBoxSelectionCallback value)
A graphical list box.
Definition: ListBox.h:12
Item * getItemFromIndex(unsigned int index) const
virtual bool setSelectedIndex(unsigned int index)
listBoxSelectionCallback getSelectionSpecializedCallback() const
bool setSelectedData(void *data)
virtual void changeItemLabel(const std::string_view &oldText, const std::string_view &newText)
Item * getItemFromLabel(const std::string_view &label) const
virtual void exportIntrospection(nkExport::Node *rootNode) override
virtual bool setSelected(const std::string_view &text)
Base class for any graphical component.
Definition: Component.h:12
void changeItemData(const std::string_view &text, void *newData)
void setLabel(const std::string_view &label)
ListBox * getParentList() const
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
const char * getLabel() const
virtual void clearItems()
virtual int getCurrentSelectionIndex() const
virtual Item * insertItem(const std::string_view &text, void *data)
void setParentList(ListBox *parent)
std::function< bool(ListBox *caller)> listBoxSelectionCallback
Used by a nkWinUi::ListBox to signal a selection occurred inside.
Definition: CallbackRepository.h:103
void * getAttachedData() const
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7
Item * getItemFromData(void *data) const